<html>

<head>
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/base.css">
	<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}/media/css/list.css">
	<script type="text/javascript" src="{{MEDIA_URL}}/media/js/jquery.js"></script>
</head>

<body>
	{% include "objects/header.html" %}	
	{% if usergroup_flexyclass|length > 0%}
	<table class="list-container" cellspacing="0">
		<tbody id="UI_CLASS_LIST">
			<tr>
				<td class="list-heading">	
					<h3>Features</h3>
				</td>
				<td class="list-tools">	
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<table class="inner-table" cellspacing="0">
					   {% for ugfc in usergroup_flexyclass %}
							<tr>
								<td class="name-td">
									<span><b>{{ ugfc.flexyclass.name }}</b></span>
								</td>
								<td class="options-td">
								
								{% if ugfc.perm == 2 %}
									<a href='/objects/add/{{ugfc.flexyclass.id}}/'>Add</a>
									<a href='/objects/update/{{ugfc.flexyclass.id}}/'>Change</a>
									<a href='/objects/search/{{ugfc.flexyclass.id}}/'>Search</a>
								{% else %}
									<a href='/objects/search/{{ugfc.flexyclass.id}}/'>Search</a>
								{% endif %}

								</td>
							</tr>
						{% endfor %}
					</table>
				</td>
			</tr>
		</tbody>
	</table>
	{% else %}
		You are seeing this page because
		<ul>
			<li>Either the user does not belong to a user group, or</li>
			<li>No class permissions are defined for the user group</li>
		</ul>
	{% endif %}
</body>
</html>